package demo1;
import demo1.LinkNodes;

public class LinkListMain {
    public static void main(String[] args){
        IList list=new LinkNodes();
        list.createLink();
        list.display();
        System.out.println();
        list.addFirst(1);
        list.addFirst(2);
        list.addLast(78);
        list.addLast(67);
        list.addLast(56);
        list.display();
        System.out.println();
        list.addIndex(4,569);
        list.display();
        boolean a=list.contains(569);
        System.out.println();
        System.out.println("是否包含569这个数"+a);
        list.removeList(1);
        System.out.println();
        list.display();
        System.out.println();
        list.remove(67);
        System.out.println();
        list.display();
        int len=list.size();
        System.out.println("链表长度为："+len);
        list.clear();
        list.display();
        System.out.println("=====");
    }
}
